package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiResponseCrmUserIdData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseCrmUserIdData   {
  @JsonProperty("userId")
  private String userId = null;

  @JsonProperty("userNum")
  private String userNum = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("departmentName")
  private String departmentName = null;

  @JsonProperty("departmentCode")
  private String departmentCode = null;

  public ApiResponseCrmUserIdData userId(String userId) {
    this.userId = userId;
    return this;
  }

  /**
   * TUSER.USERID
   * @return userId
  **/
  @ApiModelProperty(example = "liuyi", value = "TUSER.USERID")


  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public ApiResponseCrmUserIdData userNum(String userNum) {
    this.userNum = userNum;
    return this;
  }

  /**
   * tryxx.rybh
   * @return userNum
  **/
  @ApiModelProperty(example = "498897", value = "tryxx.rybh")


  public String getUserNum() {
    return userNum;
  }

  public void setUserNum(String userNum) {
    this.userNum = userNum;
  }

  public ApiResponseCrmUserIdData name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 投顾姓名
   * @return name
  **/
  @ApiModelProperty(example = "李笑笑", value = "投顾姓名")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ApiResponseCrmUserIdData departmentName(String departmentName) {
    this.departmentName = departmentName;
    return this;
  }

  /**
   * 所属营业部
   * @return departmentName
  **/
  @ApiModelProperty(example = "深圳前海长城证券营业部", value = "所属营业部")


  public String getDepartmentName() {
    return departmentName;
  }

  public void setDepartmentName(String departmentName) {
    this.departmentName = departmentName;
  }

  public ApiResponseCrmUserIdData departmentCode(String departmentCode) {
    this.departmentCode = departmentCode;
    return this;
  }

  /**
   * 所属营业部编码
   * @return departmentCode
  **/
  @ApiModelProperty(example = "2300", value = "所属营业部编码")


  public String getDepartmentCode() {
    return departmentCode;
  }

  public void setDepartmentCode(String departmentCode) {
    this.departmentCode = departmentCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseCrmUserIdData apiResponseCrmUserIdData = (ApiResponseCrmUserIdData) o;
    return Objects.equals(this.userId, apiResponseCrmUserIdData.userId) &&
        Objects.equals(this.userNum, apiResponseCrmUserIdData.userNum) &&
        Objects.equals(this.name, apiResponseCrmUserIdData.name) &&
        Objects.equals(this.departmentName, apiResponseCrmUserIdData.departmentName) &&
        Objects.equals(this.departmentCode, apiResponseCrmUserIdData.departmentCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(userId, userNum, name, departmentName, departmentCode);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseCrmUserIdData {\n");
    
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    userNum: ").append(toIndentedString(userNum)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    departmentName: ").append(toIndentedString(departmentName)).append("\n");
    sb.append("    departmentCode: ").append(toIndentedString(departmentCode)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

